package com.car.service.impl;

import com.car.dao.YejiMapper;
import com.car.entity.Emp;
import com.car.entity.Sell_pet;
import com.car.entity.Yeji;
import com.car.entity.YejiParameter;
import com.car.service.IYejiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @author: hsy
 * @version: v1.0
 * @Date
 */
@Service("yejiService")
public class YejiService implements IYejiService {
    @Autowired
    @Qualifier("yejiMapper")
    private YejiMapper yejiMapper;

    //查找储值卡
    @Override
    public List<Yeji> findChuzhiAll(YejiParameter yejiParameter) {
        return yejiMapper.findChuzhiAll(yejiParameter);
    }

    //查找年卡
    @Override
    public List<Yeji> findNiankaAll(YejiParameter yejiParameter) {
        return yejiMapper.findNiankaAll(yejiParameter);
    }

    //查找施工
    @Override
    public List<Yeji> findShigongAll(YejiParameter yejiParameter) {
        return yejiMapper.findShigongAll(yejiParameter);
    }

    //查找销售
    @Override
    public List<Yeji> findXiaoshouAll(YejiParameter yejiParameter) {
        return yejiMapper.findXiaoshouAll(yejiParameter);
    }

    //查找工种
    @Override
    public String findJob(YejiParameter yejiParameter) {
        return yejiMapper.findJob(yejiParameter);
    }

    //查找卡种类
    @Override
    public List<Sell_pet> findpet_card(YejiParameter yejiParameter) {
        return yejiMapper.findpet_card(yejiParameter);
    }

    //查找储值卡提成
    @Override
    public Yeji findChuzhiTicheng(YejiParameter yejiParameter) {
        return yejiMapper.findChuzhiTicheng(yejiParameter);
    }

    //查找销售提成
    @Override
    public Yeji findXiaoshouTicheng(YejiParameter yejiParameter) {
        return yejiMapper.findXiaoshouTicheng(yejiParameter);
    }

    //查找施工提成
    @Override
    public Yeji findShigongTicheng(YejiParameter yejiParameter) {
        return yejiMapper.findShigongTicheng(yejiParameter);
    }

    //查找年卡提成
    @Override
    public Yeji findNiankaTicheng(YejiParameter yejiParameter) {
        return yejiMapper.findNiankaTicheng(yejiParameter);
    }

    @Override
    public Emp findName(int eid) {
        return yejiMapper.findName(eid);
    }


}
